package com.ruoyi.yljf.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 收藏记录对象 yljf_collect_record
 * 
 * @author metaee
 * @date 2025-04-19
 */
@Data
@TableName(value = "yljf_collect_record")
public class CollectRecord {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 收藏目标 id */
    @Excel(name = "收藏目标 id")
    private Long targetId;

    /** 用户 id */
    @Excel(name = "用户 id")
    private Long userId;

    /** 收藏目标类型 */
    @Excel(name = "收藏目标类型")
    private String targetType;

    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

}
